package com.rongke.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.rongke.utils.DateJsonDeserializer;
import com.rongke.utils.DateJsonSerializer;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @UserCollection
 * @收藏(user_collection)
 * @version : Ver 1.0
 */
@TableName("user_collection")
public class UserCollection implements Serializable {
	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	/**
	 * @备注:收藏id
	 * @字段:id BIGINT(19)
	 */
	@TableId(type = IdType.AUTO)
	private java.lang.Long id;

	/**
	 * @备注:商品或拼团id
	 * @字段:goods_id BIGINT(19)
	 */
	private java.lang.Long goodsId;

	/**
	 * @备注:用户id
	 * @字段:muser_id BIGINT(19)
	 */
	private java.lang.Long muserId;

	/**
	 * @收藏类型（0 商品 1 拼团 ）
	 */
	private java.lang.Integer collectionTag;

	/**
	 * @备注:创建时间
	 * @字段:gmt_datetime DATETIME(19)
	 */
	@JsonSerialize(using=DateJsonSerializer.class)
	@JsonDeserialize(using=DateJsonDeserializer.class)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
	private java.util.Date gmtDatetime;

	public UserCollection(){
	}

	public UserCollection(
		java.lang.Long id
	){
		this.id = id;
	}



	public void setId(java.lang.Long id) {
		this.id = id;
	}

	public java.lang.Long getId() {
		return this.id;
	}

	public Integer getCollectionTag() {
		return collectionTag;
	}

	public void setCollectionTag(Integer collectionTag) {
		this.collectionTag = collectionTag;
	}

	public void setGoodsId(java.lang.Long goodsId) {
		this.goodsId = goodsId;
	}

	public java.lang.Long getGoodsId() {
		return this.goodsId;
	}


	public void setMuserId(java.lang.Long muserId) {
		this.muserId = muserId;
	}

	public java.lang.Long getMuserId() {
		return this.muserId;
	}

	public Date getGmtDatetime() {
		return gmtDatetime;
	}

	public void setGmtDatetime(Date gmtDatetime) {
		this.gmtDatetime = gmtDatetime;
	}
}
